/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __steper_H
#define __steper_H
#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
#include "main.h"

/* USER CODE BEGIN Includes */
#include "sys.h"

/* USER CODE END Includes */


/* USER CODE BEGIN 0 */
typedef struct 
{
		int32_t count;//记录脉冲,相当于位置
	
}steper;

/* USER CODE END 0 */



	 
	 
	 
	 
	 
	 
	 
	 
/* USER CODE BEGIN 1*/
extern steper Steper1;
extern int16_t steperControl(int32_t current ,int32_t expect, int16_t speed);

/* USER CODE END 1 */

#ifdef __cplusplus
}
#endif
#endif /*__ steper_H */


